-
Notifications
You must be signed in to change notification settings - Fork 276
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Debugging at funtion level #35
base: main
Are you sure you want to change the base?
Conversation
…s, then run on each input, check (input, output, error) for each function
merging from branch 'frequency_penalty'.
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. PR Description updated to latest commit (dbb873c)
|
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. PR Review
✨ Usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Usage guide:Overview:
With a configuration file, use the following template:
See the improve usage page for a more comprehensive guide on using this tool. |
@Majdoddin this looks like a cool endeavor Is the code you propose ready for other people (me) to play with it a bit? |
@mrT23 I really appreciate your interest. The reason for draft mode is that |
Now it catches syntax errors and errors in imports of the generated code. Can be merged. |
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. PR Description updated to latest commit (1e104dd)
|
PR-Agent was enabled for this repository. To use it, please link your git user with your CodiumAI identity here. PR Review
✨ Review tool usage guide:Overview:
With a configuration file, use the following template:
See the review usage page for a comprehensive guide on using this tool. |
PR Code Suggestions
✨ Improve tool usage guide:Overview:
With a configuration file, use the following template:
See the improve usage page for a more comprehensive guide on using this tool. |
merging from main
1e104dd
to
6f334b3
Compare
User description
This PR is based on the observation that ChatGPT is not able to do the computation necessary to calculate the output of the whole code for a given input (in web interface mode, it often resorts to generating and running a script).
Therefore three enhancements:
Based on the analysis, the LLM should then generated the corrected code.
The vision is to enable the LLM to connect to the debugger and run debugging sessions, with breakpoints, watches, ...
Comparison
I ran branch
main
and this PR on the same problem (see the attached logs). Both initially generated incorrect code, but the PR was able to successfully debug the code after 2 attempts (in total 9 LLM inferences), while themain
could not get the correct code, even after 26 LLM inferences.Delete Two Elements - 60 - main.log
Delete Two Elements - 60 - PR.log
Type
enhancement, bug_fix
Description
Changes walkthrough
7 files
coding_competitor.py
Integrate New Stages for Code Generation and Debugging
alpha_codium/gen/coding_competitor.py
generation.
stages.
debug.py
Implement Debugging Mechanism with Function Call Logging
alpha_codium/gen/stages/debug.py
run_code_structure_generation.py
Implement Code Structure Generation Stage
alpha_codium/gen/stages/run_code_structure_generation.py
run_function_body_generation.py
Implement Function Body Generation Stage
alpha_codium/gen/stages/run_function_body_generation.py
run_generate_ai_test.py
Modify AI Test Generation to Only Include Inputs
alpha_codium/gen/stages/run_generate_ai_test.py
run_generate_possible_solutions.py
Enhance Possible Solutions Generation Process
alpha_codium/gen/stages/run_generate_possible_solutions.py
run_public_tests.py
Implement New Stage for Running Public Tests
alpha_codium/gen/stages/run_public_tests.py
1 files
run_choose_best_solution.py
Enhance Solution Selection Process
alpha_codium/gen/stages/run_choose_best_solution.py
11 files
__init__.py
Change File Logging Mode to Append
alpha_codium/log/init.py
code_contests_prompts_choose_best_solution.toml
Update Prompts for Choosing Best Solution
alpha_codium/settings/code_contests_prompts_choose_best_solution.toml
code_contests_prompts_debug.toml
Add New Prompts for Debugging Stage
alpha_codium/settings/code_contests_prompts_debug.toml
code_contests_prompts_fix_code.toml
Add New Prompts for Code Fixing Stage
alpha_codium/settings/code_contests_prompts_fix_code.toml
code_contests_prompts_generate_ai_tests.toml
Modify AI Test Generation Prompts to Focus on Inputs
alpha_codium/settings/code_contests_prompts_generate_ai_tests.toml
code_contests_prompts_generate_code_structure.toml
Add Prompts for Generating Code Structure
alpha_codium/settings/code_contests_prompts_generate_code_structure.toml
code_contests_prompts_generate_function_body.toml
Add Prompts for Generating Function Bodies
alpha_codium/settings/code_contests_prompts_generate_function_body.toml
structure.
code_contests_prompts_generate_possible_solutions.toml
Update Prompts for Generating Possible Solutions
alpha_codium/settings/code_contests_prompts_generate_possible_solutions.toml
code_contests_prompts_reflect.toml
Update Prompts for Problem Reflection
alpha_codium/settings/code_contests_prompts_reflect.toml
analysis.
code_contests_prompts_test_ai_inputs.toml
Add New Prompts for Testing AI Inputs
alpha_codium/settings/code_contests_prompts_test_ai_inputs.toml
configuration.toml
Update General Configuration Settings
alpha_codium/settings/configuration.toml